package com.atguigu.edu2021.mock.factory;


import com.atguigu.edu2021.mock.bean.CommentInfo;
import com.atguigu.edu2021.mock.bean.OrderDetail;
import com.atguigu.edu2021.mock.service.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class ClearService {

    @Autowired
    OrderInfoService orderInfoService;
    @Autowired
    OrderDetailService orderDetailService;

    @Autowired
    CartInfoService cartInfoService;

    @Autowired
    CommentInfoService commentInfoService;

    @Autowired
    FavorInfoService favorInfoService;

    @Autowired
    ReviewInfoService reviewInfoService;

    @Autowired
    TestExamService testExamService;

    @Autowired
    TestExamQuestionService testExamQuestionService;



    @Autowired
    VipChangeDetailService vipChangeDetailService;

    @Autowired
    PaymentInfoService paymentInfoService;


    @Autowired
    UserInfoService userInfoService;


    public  void clearBusi(){
        orderInfoService.removeWithCache();
        orderDetailService.removeWithCache();
        paymentInfoService.removeWithCache();
        vipChangeDetailService.removeWithCache();
        testExamService.removeWithCache();
        testExamQuestionService.removeWithCache();
        vipChangeDetailService.removeWithCache();
        reviewInfoService.removeWithCache();
        commentInfoService.removeWithCache();
        favorInfoService.removeWithCache();

    }




}
